﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using WF.Model;

namespace WF.ViewModels.Common
{
    public class NameValuePairVM : ViewModelBase, IDataItemContainer
    {
        public List<NameValuePairEntity> GetNameValuePairEntityByCategory(string Category)
        {
            WF.BusinessObject.NameValuePair obj = CreateNameValuePair();
            return obj.GetNameValuePairEntityByCategory(Category);
        }

        public List<NameValuePairEntity> GetNameValuePairEntityByCategoryWithBlankItem(string Category, string blankItemText, string blankItemValue)
        {
            WF.BusinessObject.NameValuePair obj = CreateNameValuePair();
            return obj.GetNameValuePairEntityByCategory(Category, true, blankItemText, blankItemValue);
        }
    }
}
